package org.byacko.simplemock;

public class ExpectMethodHook extends MethodHook {

	private Asserter aserter;

	public ExpectMethodHook(String methodName, Class<?>[] argTypes,
			Asserter asserter) {
		super(methodName, argTypes);
		this.aserter = asserter;
	}

	public boolean isAssertable() {
		return this.aserter != null;
	}

	public void invokeAssertion(Object[] args) throws Throwable {
		this.aserter.invoke(args);
	}
}
